from peewee import SqliteDatabase, CharField, DateTimeField, Model

db = SqliteDatabase('tasks.db')

class Tasks(Model):

    # 任务id
    task_id = CharField()

    # 创建时间
    create_datetime = DateTimeField()

    class Meta:
        database = db

db.create_tables([Tasks])